<template>
  <div class="q-pa-md">
    <t-btn-dropdown color="primary" label="Dropdown Button">
      <t-list>
        <t-item clickable v-close-popup @click="onItemClick">
          <t-item-section>
            <t-item-label>Photos</t-item-label>
          </t-item-section>
        </t-item>

        <t-item clickable v-close-popup @click="onItemClick">
          <t-item-section>
            <t-item-label>Videos</t-item-label>
          </t-item-section>
        </t-item>

        <t-item clickable v-close-popup @click="onItemClick">
          <t-item-section>
            <t-item-label>Articles</t-item-label>
          </t-item-section>
        </t-item>
      </t-list>
    </t-btn-dropdown>
  </div>
</template>

<script>
  export default {
    setup() {
      return {
        onItemClick() {
          // console.log('Clicked on an Item')
        },
      };
    },
  };
</script>
